package com.charlotte.study.gupao.strategy.draw;

/**
 * @author junjie.ding
 * @date 2020/3/16
 */
public class Test {
    public static void main(String[] args) {

        // 先抽一等奖
        IDrawStrategy firstPrize = DrawStrategyFactory.getStrategy("FIRST_PRIZE");
        firstPrize.doDraw();

        // 再抽其他奖项
        IDrawStrategy secondPrize = DrawStrategyFactory.getStrategy("SECOND_PRIZE");
        secondPrize.doDraw();
    }
}
